package com.kujie.access.domain.bo;

import com.kujie.access.domain.po.RegionManagement;
import com.kujie.common.core.validate.EditGroup;
import com.kujie.common.tenant.core.TenantEntity;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = RegionManagement.class, reverseConvertGenerate = false)
public class RegionManagementBO extends TenantEntity {
    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 所属园区
     */
    private String affiliatedPark;

    /**
     * 区域查询id
     */
    private String indexCode;

    /**
     * 名称
     */
    private String name;

    /**
     * 父id
     */
    private String parentIndexCode;

    /**
     * 父级名称
     */
    private String parentName;
}
